package mobi.pooper;

import mobi.pooper.db.IPicsDbAdapter;
import mobi.pooper.db.PicsDbAdapterImpl;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;

import android.os.Bundle;

public class PooperActivity extends AndroidApplication implements IPooperApplication{

	private static final String TAG = PooperActivity.class.getSimpleName();
	PicsDbAdapterImpl picsDba;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setLogLevel(LOG_DEBUG);

		AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
		config.useCompass = false;
		config.useAccelerometer = false;
		config.useGL20 = false;
		Pooper game = new Pooper();

		initialize(game, config);

		picsDba = new PicsDbAdapterImpl(this);
	}

	@Override
	public IPicsDbAdapter getPicsDbAdapter() {
		return picsDba;
	}
}

